package src.lab02.text20;

import java.util.Scanner;

/**
 * Created by HASEE on 2017/10/26.
 */
public class Text {
    public static void main(String[] args) {
        //用户从键盘输出一行含有数字和字符的字符串
        String result;
        Scanner scanner=new Scanner(System.in);
        result=scanner.next();
        System.out.println(result);
        //只输出数字
        char tmp;
        int i;
        for (i=0;i<result.length()-1;i++){
            tmp=result.charAt(i);
            if (tmp>='0'&&tmp<='9'){
                System.out.println(tmp);
            }
        }

    }
}
